#include "junix.h"

int main(int argc, char **argv)
{
	int fd = open("X",O_RDWR|O_CREAT|O_TRUNC,0644);
	if(fd==-1)
		err_sys("open");
	int a=1234;
	write(fd, &a, sizeof(a) );
	printf("%d\n",lseek(fd, 0,SEEK_CUR));
	Lseek(fd,0,SEEK_SET);
	close(fd);
    exit(0);
}

